﻿@using QDT.Common
@using QDT.Core
@model IPagedList<QDT.Core.Orders.ChargeOrder>

<div class="main_title">
    充值订单回收站</div>
<div class="blank5">
</div>
<div class="button_row">
    <a class="button" href="javascript: foreverdel()">彻底删除</a>
    <a class="button" href="javascript: restore()">恢复</a>
</div>
<div class="blank5">
</div>
<div class="search_row">
	<form name="search" action="@Url.Action("Trash")" method="get">	
        订单编号：<input type="text" class="textbox" name="orderId" size="8"/>
        用户名：<input type="text" class="textbox" name="username" value="@Request.Params["username"]"/>
	    <input type="submit" class="button" value="搜索"/>
	</form>
</div>
<div class="grid_box">
    <div class="grid_top">
    </div>
    @Html.Grid(Model).Columns(column =>
{
    column.CheckBox(x => x.ID);
    column.For(x => x.ID).Named("编号").HeaderAttributes(style => "width:50px;");
    column.For(x => x.OrderSN).Named("订单号").SortColumnName("OrderSN");
    column.For(x => Html.F().GetUserName(x.UserID)).Named("会员名称").SortColumnName("UserID");
    column.For(x => x.PayAmount.ToMoney()).Named("已收金额").SortColumnName("PayAmount");
    column.For(x => x.TotalPrice.ToMoney()).Named("应付总额").SortColumnName("TotalPrice");
    column.For(x => Html.F().GetPaymentInfo(x.PaymentKey)).Named("支付方式").SortColumnName("PaymentKey");
    column.For(x => x.Status.ToLocalizable()).Named("支付状态").SortColumnName("InnerStatus");
    column.For(x => x.Memo).Named("支付备注").SortColumnName("Status");
    column.Buttons(btns => btns.Add(x => Html.ScriptLink("彻底删除", "foreverdel({0})", x.ID))
                                                                 .Add(x => Html.ScriptLink("恢复", "restore({0})", x.ID)));
}).Complex(ViewData)
    <div class="grid_foot">
    </div>
</div>
<div class="blank5">
</div>
@Html.Pager(Model)

